<template>
  <div class="join-us-container">
    <div class="back-to-home">
      <router-link to="/" class="back-link">← 返回首页</router-link>
    </div>
    <div class="join-us-header">
      <h1>加入我们</h1>
      <p>一起为更多人的情感健康和幸福贡献力量</p>
    </div>

    <div class="join-us-content">
      <!-- 为什么加入我们 -->
      <section class="why-join">
        <h2>为什么加入我们？</h2>
        <div class="reasons-grid">
          <router-link to="#meaningful-work" class="reason-card reason-link">
            <div class="reason-icon">❤️</div>
            <h3>有意义的工作</h3>
            <p>参与真正帮助他人解决情感困扰的工作，让每一份努力都有价值</p>
            <div class="view-more">了解更多 →</div>
          </router-link>
          <router-link to="#professional-team" class="reason-card reason-link">
            <div class="reason-icon">👥</div>
            <h3>专业团队</h3>
            <p>与经验丰富的心理咨询师和情感专家一起工作和学习</p>
            <div class="view-more">了解更多 →</div>
          </router-link>
          <router-link to="#personal-growth" class="reason-card reason-link">
            <div class="reason-icon">📈</div>
            <h3>个人成长</h3>
            <p>获得专业培训和持续的个人成长机会，提升专业技能</p>
            <div class="view-more">了解更多 →</div>
          </router-link>
          <router-link to="#flexible-work" class="reason-card reason-link">
            <div class="reason-icon">🕒</div>
            <h3>灵活工作</h3>
            <p>灵活的工作时间和友好的工作环境，实现工作与生活的平衡</p>
            <div class="view-more">了解更多 →</div>
          </router-link>
        </div>
      </section>

      <!-- 我们正在寻找 -->
      <section class="positions">
        <h2>我们正在寻找</h2>
        <div class="positions-list">
          <router-link to="/position/counselor" class="position-card position-link">
            <h3>心理咨询师</h3>
            <p class="position-requirements">需要心理学、心理咨询相关专业背景和资质认证</p>
            <ul>
              <li>国家心理咨询师资格证书</li>
              <li>3年以上心理咨询工作经验</li>
              <li>擅长情感关系、婚姻家庭等咨询领域</li>
            </ul>
            <div class="view-details">查看详情 →</div>
          </router-link>
          <router-link to="/position/advisor" class="position-card position-link">
            <h3>情感顾问</h3>
            <p class="position-requirements">热爱倾听和帮助他人，具备良好的沟通能力</p>
            <ul>
              <li>对情感咨询有浓厚兴趣</li>
              <li>优秀的文字表达和沟通能力</li>
              <li>能够提供温暖、专业的建议</li>
            </ul>
            <div class="view-details">查看详情 →</div>
          </router-link>
          <router-link to="/position/editor" class="position-card position-link">
            <h3>内容编辑</h3>
            <p class="position-requirements">负责情感文章的撰写、编辑和审核工作</p>
            <ul>
              <li>中文、新闻、心理学等相关专业</li>
              <li>优秀的文字功底和编辑能力</li>
              <li>熟悉情感类内容的创作和审核标准</li>
            </ul>
            <div class="view-details">查看详情 →</div>
          </router-link>
          <router-link to="/position/tech" class="position-card position-link">
            <h3>技术支持</h3>
            <p class="position-requirements">维护和优化我们的技术平台，提升用户体验</p>
            <ul>
              <li>熟悉前端或后端开发技术</li>
              <li>有Web应用开发经验</li>
              <li>关注用户体验和产品优化</li>
            </ul>
            <div class="view-details">查看详情 →</div>
          </router-link>
        </div>
      </section>

      <!-- 如何申请 -->
      <section class="how-to-apply">
        <h2>如何申请？</h2>
        <div class="application-steps">
          <div class="step">
            <div class="step-number">1</div>
            <div class="step-content">
              <h3>提交申请</h3>
              <p>请将您的简历和简短自我介绍发送至：<strong>join@ganqingjieyou.com</strong></p>
            </div>
          </div>
          <div class="step">
            <div class="step-number">2</div>
            <div class="step-content">
              <h3>初步筛选</h3>
              <p>我们会在收到申请后的一周内进行初步筛选并与您联系</p>
            </div>
          </div>
          <div class="step">
            <div class="step-number">3</div>
            <div class="step-content">
              <h3>面试交流</h3>
              <p>通过初步筛选的候选人将受邀参加面试，进一步了解彼此</p>
            </div>
          </div>
          <div class="step">
            <div class="step-number">4</div>
            <div class="step-content">
              <h3>加入团队</h3>
              <p>通过面试的候选人将正式成为我们团队的一员</p>
            </div>
          </div>
        </div>
      </section>

      <!-- 联系我们 -->
      <section class="contact-section">
        <h2>有任何疑问？</h2>
        <p>如果您对职位或申请过程有任何疑问，欢迎随时联系我们</p>
        <div class="contact-info">
          <p>📧 邮箱：join@ganqingjieyou.com</p>
          <p>📱 微信：ganqingjieyou_join</p>
        </div>
      </section>
    </div>
  </div>
</template>

<script>
export default {
  name: 'JoinUsView'
}
</script>

<style scoped>
.join-us-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2rem;
}

.back-to-home {
  margin-bottom: 1rem;
}

.back-link {
  color: #ff9a9e;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #f86d75;
  text-decoration: underline;
}

.join-us-header {
  text-align: center;
  margin-bottom: 3rem;
}

.join-us-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.join-us-header p {
  color: #666;
  font-size: 1.1rem;
}

.join-us-content {
  display: flex;
  gap: 3rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #ff9a9e #f1f1f1;
}

.join-us-content::-webkit-scrollbar {
  height: 6px;
}

.join-us-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.join-us-content::-webkit-scrollbar-thumb {
  background: #ff9a9e;
  border-radius: 3px;
}

.join-us-content::-webkit-scrollbar-thumb:hover {
  background: #f86d75;
}

/* 为什么加入我们 */
.why-join,
.positions,
.how-to-apply,
.contact-section {
  min-width: 350px;
  flex: 0 0 auto;
  width: 350px;
  max-width: calc(100% - 2rem);
}

.why-join h2,
.positions h2,
.how-to-apply h2,
.contact-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.reason-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.reason-link:hover .reason-card {
  background-color: #fff9f8;
}

.reason-link:hover h3 {
  color: #ff9a9e;
  transition: color 0.3s ease;
}

.view-more {
  color: #ff9a9e;
  font-weight: 500;
  margin-top: 1rem;
  text-align: right;
  transition: transform 0.3s ease;
}

.reason-link:hover .view-more {
  transform: translateX(5px);
}

.reason-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.reason-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
}

.reason-card p {
  color: #666;
  line-height: 1.6;
}

/* 职位列表 */
.positions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.position-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.position-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.position-link:hover .position-card {
  background-color: #fff9f8;
}

.position-link:hover h3 {
  color: #ff9a9e;
}

.position-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.position-requirements {
  color: #ff9a9e;
  font-weight: bold;
  margin-bottom: 1rem;
}

.position-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.position-card li {
  margin-bottom: 0.5rem;
  color: #666;
  line-height: 1.6;
}

.view-details {
  color: #ff9a9e;
  font-weight: bold;
  text-align: right;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.position-link:hover .view-details {
  transform: translateX(5px);
}

/* 申请步骤 */
.application-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
}

.step-number {
  background-color: #ff9a9e;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* 联系我们 */
.contact-section {
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-section p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info {
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .join-us-container {
    padding: 1rem;
  }
  
  .join-us-header h1 {
    font-size: 2rem;
  }
  
  .join-us-content {
    flex-direction: column;
  }
  
  .why-join,
  .positions,
  .how-to-apply,
  .contact-section {
    width: 100%;
    min-width: unset;
  }
  
  .why-join h2,
  .positions h2,
  .how-to-apply h2,
  .contact-section h2 {
    font-size: 1.5rem;
  }
  
  .reasons-grid,
  .positions-list,
  .application-steps {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
</style>